package com.forlgb.powercloud.seata.common.rpc.fallback;

import com.forlgb.powercloud.seata.common.rpc.IFeignAccountClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class IFeignAccountClientFallback implements FallbackFactory<IFeignAccountClient> {

    @Override
    public IFeignAccountClient create(Throwable throwable) {
        log.error("远程调用用户账号服务失败~");
        return null;
    }
}
